import { BrowserRouter as Router, Route, Switch, Redirect } from 'react-router-dom'
import { Login } from '@/pages/Login/Login.js';
import { GeekLayout } from '@/pages/GeekLayout/GeekLayout';
import { NotFound } from '@/pages/NotFound/NotFound';
import './App.scss';

export const App = () => {
  return (
    <Router>
      <div className="App">
        <Switch>
          <Route exact path={'/'} render={() => <Redirect to={'/home'} />} />
          <Route path={'/home'} component={GeekLayout} />
          <Route path={'/login'} component={Login} />
          <Route component={NotFound} />
        </Switch>
      </div>
    </Router>
  );
}

